﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_Front : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            CmsDataContext db = new CmsDataContext();

            var px2 = (from aA in db.Article where aA.Verified != null orderby aA.Verified descending select aA).Take(6);
            Repeater3.DataSource = px2;
            Repeater3.DataBind();

            BindData();
        }
    }

    private void BindData()
    {
        string rid = Request.Params["rid"];
        if (rid == null || rid == "")
        {
            rid = "dyq";
        }

        if (rid == "dyq")
        {
            dyq.Visible = true;
        }
        else if (rid == "hkq")
        {
            hkq.Visible = true;
        }
        else if (rid == "grx")
        {
            grx.Visible = true;
        }
        else if (rid == "ljx")
        {
            ljx.Visible = true;
        }
        else if (rid == "klx")
        {
            klx.Visible = true;
        }
    }
}